<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%
	String path = request.getContextPath();
	String webContent = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("webContent", webContent);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>跟新文章信息</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery.js"></script>
</head>
<body>

	
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">文章管理</a></li>
    <li><a href="#">更新文章</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    <div class="formtitle"><span>更新文章 &nbsp;</span></div>
       
       <form action="${webContent}article/updateArticle">
       		<ul class="forminfo">
       		<li><label>文章标题</label><input name="title" type="text" class="dfinput" value="${sessionScope.article.title }"/></li>
    		<li><label>文章作者</label><input name="author" type="text" class="dfinput" value="${sessionScope.article.user.username }"/></li>
    		<li><label>文章内容</label><input name="content" type="text" class="dfinput" value="${sessionScope.article.content }"/></li>
    		<li><label>阅读次数</label><input name="readcount" type="text" class="dfinput" value="${sessionScope.article.readcount }"/></li>
		    
		    <li><label>&nbsp;</label>  <input type="submit" class="btn" value="更新"/></li>
		    </ul>
       </form>

	</div>
</body>
</html>